﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("Comments")]
    public class Comments : IEntity<long>
    {
        public long ID { get; set; }
        [Required]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        [Column(TypeName = "text")]
        public string Contents { get; set; }
        public long CourseID { get; set; }
        public long UserID { get; set; }
        [StringLength(50)]
        public string UserName { get; set; }
    }
}
